let str = (val,num1,num2) => {
    let v = val.substr(num1,num2)
    return v
}
let getJson= (str)=>{ 
    var json = eval('(' + str + ')'); 
    return json; 
} 
let last = (str) => {
    let val = str.lastIndexOf('.')
    return val
}
export{
    str,
    getJson,
    last
}